package com.daiyang.librarymanagementsystem2;

import com.daiyang.librarymanagementsystem2.controller_test.User;
import com.daiyang.librarymanagementsystem2.controller_test.UserController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
public class LibraryManagementSystem2Application {

	public static void main(String[] args) {

		SpringApplication.run(LibraryManagementSystem2Application.class, args);
////		UserController userController=context.getBean(UserController.class);
////		userController.sayHello();
////		UserController userController1=(UserController) context.getBean("userController");
////		userController1.sayHello();
//		UserController userController2= context.getBean("userController", UserController.class);
//		userController2.sayHello();
////		System.out.println(userController);
////		System.out.println(userController1);
////		System.out.println(userController2);
////		UserController userController3= (UserController) context.getBean("userController", "哈哈",111);
////		System.out.println(userController3);
////
////		userController3.sayHello2();
////		User user1=context.getBean("u1",User.class);
////		System.out.println(user1);
	}

}
